<div class="search">
  <div>
    <input type="text" [(ngModel)]="keyWord" (keypress)="doSearch($event)"><button (click)="doSearch(13)">搜索</button>
  </div>
  <ul class="search-history">
    <li>历史列表</li>
    <li *ngFor="let item of searchHistory;let key = index">{{item}}-- <span class="delete" (click)="deleteHistory(key)">X</span></li>
  </ul>
</div>
